package sphere.model;

public class Sphere
{
	private double rayon;

	public Sphere(double rayon)
	{
		this.rayon = rayon;
	}

	public double getRayon()
	{
		return rayon;
	}

	public void setRayon(double rayon)
	{
		this.rayon = rayon;
	}

	public double calculerVolume()
	{
		return ((4 / 3) * Math.PI * Math.pow(rayon, 3));
	}

	public double calculerSurface()
	{
		return (4 * Math.PI * (Math.pow(rayon, 2)));
	}

}
